package com.guoheng.hazard.common.enums;

/**
 * 高危工艺枚举
 *
 * @param
 * @author fbl
 * @date 2019/10/16 2019/10/16
 * @return
 */
public enum ProcessEnum {

    /**
     * 光气及光气化工艺
     */
    PROCESS_TYPE_1(1, "光气及光气化工艺"),
    PROCESS_TYPE_2(2, "电解工艺"),
    PROCESS_TYPE_3(3, "氯化工艺"),
    PROCESS_TYPE_4(4, "硝化工艺"),
    PROCESS_TYPE_5(5, "合成氨工艺"),
    PROCESS_TYPE_6(6, "裂解工艺"),
    PROCESS_TYPE_7(7, "氟化工艺"),
    PROCESS_TYPE_8(8, "加氢工艺"),
    PROCESS_TYPE_9(9, "重氮化工艺"),
    PROCESS_TYPE_10(10, "氧化工艺"),
    PROCESS_TYPE_11(11, "过氧化工艺"),
    PROCESS_TYPE_12(12, "胺基化工艺"),
    PROCESS_TYPE_13(13, "磺化工艺"),
    PROCESS_TYPE_14(14, "聚合工艺"),
    PROCESS_TYPE_15(15, "烷基化工艺"),
    PROCESS_TYPE_16(16, "新型煤化工工艺"),
    PROCESS_TYPE_17(17, "电石生产工艺"),
    PROCESS_TYPE_18(18, "偶氮化工艺");


    private Integer code;

    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

    ProcessEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static String getValue(Integer value) {
        ProcessEnum[] businessModeEnums = values();
        for (ProcessEnum businessModeEnum : businessModeEnums) {
            if (businessModeEnum.getCode().equals(value)) {
                return businessModeEnum.getMsg();
            }
        }
        return null;
    }

}

